﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="SolutionFramework.Web.Default"  %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>SolutionFramework</title>
    <style type="text/css">
    html, body {
	    height: 100%;
	    overflow: auto;
    }
    body {
	    padding: 0;
	    margin: 0;
    }
    #silverlightControlHost {
	    height: 100%;
	    text-align:center;
    }
    </style>

    <script type = "text/javascript">

        function LoadWindows() 
        {
            var loadMonitor = <% =GetLoadMonitor() %>;

            if (loadMonitor)
            {
                Popup('PackageMonitor.aspx');

                setTimeout("Popup('MainPage.aspx'); window.close();", 10000);
            }
            else
            {
                Popup('MainPage.aspx');
                window.close();
            }
        }

        function Popup(url) 
        {
            var width = screen.width;
            var height = screen.height;
            var windowProperties = "toolbar=0,titlebar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=" + width + ",height=" + height + ",left=0,top=0";

            window.open(url, "", windowProperties);
        }

    </script>

</head>
<body onload="LoadWindows()">
</body>
</html>
